home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8233 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  883 b 

  1. Path: scratchy.mi.net!usenet
  2. From: hansonk@mi.net (hansonk)
  3. Newsgroups: comp.lang.c++
  4. Subject: Need help with Object Oriented Semantics
  5. Date: Fri, 16 Feb 1996 02:49:00 GMT
  6. Organization: Maritime Internet Services
  7. Message-ID: <4g0d70$ap8@scratchy.mi.net>
  8. NNTP-Posting-Host: kyle.mi.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I need help determining the correct object oriented approach to the
  12. following problem:
  13.     Say I have an object that might read a file.  The problem I am having
  14. is that say the file has 50 different columns of data.  I know from my
  15. obvious little experience in C++ programming that member functions
  16. should be written to access all hidden private data.  What would be
  17. the semantically correct way to code this type of object.
  18.     I know that writing 50 functions to retrieve each data item is a
  19. waster of time.  Should I just use a struct and return that instead.
  20.  
  21.  
  22.